package com.gopay.common.domain.gsrt;
// Generated 2016-1-16 17:20:08 by Hibernate Tools 4.3.1.Final

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 发标担保方协议号信息子表
 */
@Entity
@Table(name = "GSRT_CUST_TENDER_SURETY_SUB")
public class GsrtCustTenderSuretySub implements java.io.Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 
     * 担保方协议号信息ID
     */
    private Long id;

    private Long custTenderMasterId;

    /** 
     * 担保方协议号 
     */
    private String suretyConstracterId;

    /** 
     * 担保方商户ID ---预留字段   担保方协议号  担保方存在多个使用“  | ”隔开
     */
    private String suretyCustId;

    /** 
     * 备注
     */
    private String remark;

    /** 
     * 预留字段3
     */
    private String remark3;

    /** 
     * 预留字段2
     */
    private String remark2;

    /** 
     * 记录最后修改时间
     */
    private Date lastUpdTs;

    /** 
     * 乐观锁版本号
     */
    private Long version;

    /** 
     * 提交时间
     */
    private Date createTs;

    /** 
     * 交易原因
     */
    private String commentRk;

    public GsrtCustTenderSuretySub() {
    }

    public GsrtCustTenderSuretySub(Long id, Long custTenderMasterId, String suretyConstracterId,
            Date createTs) {
        setId(id);
        setCustTenderMasterId(custTenderMasterId);
        setSuretyConstracterId(suretyConstracterId);
        setCreateTs(createTs);
    }

    public GsrtCustTenderSuretySub(Long id, Long custTenderMasterId, String suretyConstracterId,
            String suretyCustId, String remark, String remark3, String remark2, Date lastUpdTs,
            Long version, Date createTs, String commentRk) {
        setId(id);
        setCustTenderMasterId(custTenderMasterId);
        setSuretyConstracterId(suretyConstracterId);
        setSuretyCustId(suretyCustId);
        setRemark(remark);
        setRemark3(remark3);
        setRemark2(remark2);
        setLastUpdTs(lastUpdTs);
        setVersion(version);
        setCreateTs(createTs);
        setCommentRk(commentRk);
    }

    @Id
    @SequenceGenerator(name = "GsrtCustTenderSuretySubSequence", sequenceName = "GSRT_CUST_TENDER_SURETY_SEQ")
    @GeneratedValue(generator = "GsrtCustTenderSuretySubSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "CUST_TENDER_MASTER_ID", nullable = false, precision = 22, scale = 0)
    public Long getCustTenderMasterId() {
        return this.custTenderMasterId;
    }

    public void setCustTenderMasterId(Long custTenderMasterId) {
        this.custTenderMasterId = custTenderMasterId;
    }

    @Column(name = "SURETY_CONSTRACTER_ID", nullable = false, length = 14)
    public String getSuretyConstracterId() {
        return this.suretyConstracterId;
    }

    public void setSuretyConstracterId(String suretyConstracterId) {
        this.suretyConstracterId = suretyConstracterId;
    }

    @Column(name = "SURETY_CUST_ID", length = 11)
    public String getSuretyCustId() {
        return this.suretyCustId;
    }

    public void setSuretyCustId(String suretyCustId) {
        this.suretyCustId = suretyCustId;
    }

    @Column(name = "REMARK", length = 90)
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "REMARK3", length = 50)
    public String getRemark3() {
        return this.remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    @Column(name = "REMARK2", length = 50)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "VERSION", precision = 22, scale = 0)
    public Long getVersion() {
        return this.version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Column(name = "CREATE_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreateTs() {
        return this.createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name = "COMMENT_RK", length = 50)
    public String getCommentRk() {
        return this.commentRk;
    }

    public void setCommentRk(String commentRk) {
        this.commentRk = commentRk;
    }

}
